package org.csmzxy.class2333;

import java.util.Scanner;

public class Example01 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int input = scanner.nextInt();
        int num1 = input/100;
        int num2 = input%100/10;
        int num3 = input%10;
        if(((int)Math.pow(num1,3) + (int)Math.pow(num2,3) + (int)Math.pow(num3,3)) == input){
            System.out.println("这是一个水仙花数");
        }else {
            System.out.println("这不是一个水仙花数");
        }
    }
}